import React from 'react';
import { AtButton, AtMessage } from 'taro-ui';

interface Props {
  create: () => void;
  test: () => void;
  share: () => void;
}

const viewView = ({ create, test, share }: Props) => {
  return (
    <div>
      <AtButton onClick={create}>新建</AtButton>

      <AtButton onClick={test}>测试</AtButton>

      <AtButton onClick={share}>分享</AtButton>

      <AtMessage />
    </div>
  );
};

export default viewView;
